package org.lanettiesso.dubbo.simple.service.provider;

import lombok.extern.slf4j.Slf4j;
import org.lanettiesso.dubbo.simple.annotation.Service;
import org.lanettiesso.dubbo.simple.service.HelloService;

import java.text.SimpleDateFormat;
import java.util.Date;

@Slf4j
@Service
public class HelloServiceImpl implements HelloService {

    @Override
    public void sayHello(String name) {
        log.info("Hello {}", name);
    }

    @Override
    public String getTime() {
        return new SimpleDateFormat("yyyy-MM-dd").format(new Date());
    }
}
